﻿Imports System.IO
Imports log4net.Config
Imports DanielVaughan.Calcium

Class Application

	Public Sub New()
		' This causes log4net to initalise. 
		' We need this for the ClientLogging library 
		' to be able to log using log4net. 
		' It triggers reading the config etc. [DV] 
		XmlConfigurator.ConfigureAndWatch(New FileInfo("Log4Net.config"))
		Log.Info("Client starting.")

		' To substitute the unity container with your own, enabling replacement 
		' of the splash screen and shell etc, initialize the IoC container as shown:
		' UnityContainer container = New UnityContainer()
		' container.InitializeServiceLocator()

		Dim app As AppStarter = New AppStarter()
		' To customize the splash screen image use the StartupOptions as shown below. */
		' starter.StartupOptions.SplashImagePackUri = New Uri("pack://application:,,,/YourAssembly;component/YourImage.jpg")

		' To exclude default modules use the ExcludedModules list.
		' starter.StartupOptions.ModuleCatalogOptions.ExcludedModules.Add(ModuleNames.OutputDisplay);
		' starter.StartupOptions.ModuleCatalogOptions.ExcludedModules.AddRange(ModuleNames.DefaultModuleNames);

		app.Start()
	End Sub

End Class
